package com.example.provider.contorller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author huaiyu yin
 * @Date 2021/4/30 4:03 下午
 * @Version 1.0
 */
@RestController
public class ProviderController {

    @RequestMapping(value = "/person/{name}",method = RequestMethod.GET)
    public String findName(@PathVariable("name") String name){
        return name;
    }



}
